package cn.springBoot.entity;

import java.io.Serializable;



import com.baomidou.mybatisplus.activerecord.Model;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * <p>
 * 
 * </p>
 *
 * @author ljx
 * @since 2020-01-16
 */
@ApiModel(value="用户表")
@Data
public class User extends Model<User> implements Serializable {

    private static final long serialVersionUID = 1L;
   
    @ApiModelProperty("编号")
    private Integer id;
    @ApiModelProperty("姓名")
    private String name;
    //登陆名
    private String username;
    //密码
    private String password;
    //邮箱
    private  String email;




    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "User{" +
        ", id=" + id +
        ", name=" + name +
        "}";
    }
}
